using System.IO;

namespace Game.Lib
{
    public interface Serializable
    {
        byte[] ToBytes();
        void FromBytes(byte[] data, int pos);
        void Serialize(Stream s);
        void Deserialize(Stream s);
    }
}
